FROM nginx:stable

WORKDIR /usr/share/nginx/html

ADD ./default.conf /etc/nginx/conf.d/default.conf
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
RUN rm -rf /usr/share/nginx/html/*

COPY ./dist/ /usr/share/nginx/html

EXPOSE 80

CMD ["nginx","-g","daemon off;"]
